import request from '@/utils/request'

function findBrandByPage(start, limit) {
  return request({
    url: `/lejuAdmin/brand/findBrandByPage/${start}/${limit}`
  })
}

function addBrand(data) {
  return request({
    url: '/lejuAdmin/brand/addBrand',
    method: 'post',
    data
  })
}

function updateBrand(data) {
  return request({
    url: '/lejuAdmin/brand/updateBrand',
    method: 'post',
    data
  })
}

function delBrand(id) {
  return request({
    url: `/lejuAdmin/brand/delBrand/${id}`,
    method: 'delete'
  })
}
export {
  findBrandByPage,
  addBrand,
  updateBrand,
  delBrand
}
